import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  user: String,
  id: Number
}

const actions = {}

const mutations = {
  changeUser (state, params) {
    state.user = params.user
    state.id = params.id
  }
}

const getters = {}

export default new Vuex.Store({
  state,
  actions,
  mutations,
  getters
})
